package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.DataDao;
import com.wanda.model.DataModel;
import com.wanda.service.DataService;
@Service
public class DataServiceimpl implements DataService{

	@Autowired	
	private DataDao dataDao;
	
	
	public List<DataModel> selectBySql(String SearchSql) {
		System.out.println("dataDao:"+dataDao+":"+SearchSql);
		return dataDao.selectBySql(SearchSql);
	}


	public int addData(DataModel data) {
	 	return dataDao.addData(data);
	}

}
